const Home = () => import('@/view/Home/index.vue')
const sort = () => import('@/view/Sort/index.vue')
const Worth = () => import('@/view/Worth/index.vue')
const Cart = () => import('@/view/Cart/index.vue')
const Center = () => import('@/view/center/index.vue')
const Login = () => import('@/view/Login/index.vue')
const Search = () => import('@/view/search/index.vue')
const SearchDetails = () => import('@/view/search/SearchDetails/index.vue')
const SortList = () => import('@/components/sortList/index.vue')
const Detail = () => import('@/view/Sort/Detail/index.vue')
const pageError = () => import('@/view/search/pageError/index.vue')
const Registration = () => import('@/view/Registration/index.vue')
const Pay = () => import('@/view/Cart/Pay/index.vue')
const Order = () => import('@/view/Cart/Order/index.vue')
export const routers = [
    {
        path: "/",
        component: Home,
    },
    {
        path: '/item/cateList',
        component: sort,
    },
    {
        path: '/item/cateList/sortList',
        component: SortList
    },
    {
        path: '/item/worth',
        component: Worth,
    },
    {
        path: '/item/cart',
        name: 'cart',
        component: Cart,
    },
    {
      path: '/item/cart/Order',
      name: 'Order',
      component: Order,
    },
    {
      path: '/item/cart/Pay',
      name: 'Pay',
      component: Pay,
    },
    {
        path: '/item/center',
        component: Center,
    },
    {
        path: '/search',
        component: Search,
        meta: {
            walk: true
        }
    },
    {
        path: '/searchDetails',
        component: SearchDetails,
        meta: {
            walk: false
        }
    },
    {
        path: '/item/login',
        component: Login
    },
    {
        path: '/item/detail',
        component: Detail,

    },
    {
        path: '/pageError',
        component: pageError
    },
    {
        path: '/item/registration',
        component: Registration
    }
]
